//Ext.BLANK_IMAGE_URL = 'ext/resources/images/default/s.gif';


	var jpgrating = function(value){
	if (value > 9){
		return 'images/5stars.png';}
	else{
		if (value > 8){
			return 'images/4dot5stars.png';}
		else{
			if (value > 7){
				return 'images/4stars.png';}
			else{
				if (value > 6){
					return 'images/3dot5stars.png';}
				else{
					if (value > 5){
						return 'images/3stars.png';}
					else{
						if (value > 4){
							return 'images/2dot5stars.png';}
						else{
							if (value > 3){
								return 'images/2stars.png';}
							else{
								if (value > 2){
									return 'images/1dot5stars.png';}
								else{
									if (value > 1){
										return 'images/1stars.png';}
									else{
										return 'images/0stars.png';}
								}
							}
						}
					}
				}
			}
		}
	}	
	}
	
	
	var colModel = new Ext.grid.ColumnModel([
		{header: "#", dataIndex: 'idMovie', hidden: true},
		{header: "Title", width: 300, dataIndex: 'c00'},
		{header: "Description", dataIndex: 'c01', hidden: true},
		{header: "Duration", dataIndex: 'c11', hidden: true},
		{header: "Producer", dataIndex: 'c15', hidden: true},
		{header: "Rating", dataIndex: 'c05', hidden: true},
		{header: "Genre", dataIndex: 'strGenre'},
		{header: "Studio", dataIndex: 'c18'},
		{header: "Release", dataIndex: 'c07'},
		{header: "file", dataIndex: 'idFile', hidden: true}
    ]);

//Ext.BLANK_IMAGE_URL = 'extjs/resources/images/default/s.gif';